package com.example.hlhjdraw

import android.content.Intent
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.tenma.ventures.bean.utils.TMSharedPUtil
import com.tenma.ventures.config.TMConstant
import com.tenma.ventures.config.TMServerConfig
import org.greenrobot.eventbus.EventBus
import org.greenrobot.eventbus.Subscribe
import org.greenrobot.eventbus.ThreadMode

class GoWebFgm :Fragment() {
    var rootView:View?=null
    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        rootView=inflater.inflate(R.layout.fgm_go_web,null)
        val drawWebFgm = DrawWebFgm()
        val bundle = Bundle()
        bundle.putString(TMConstant.BundleParams.LOAD_URL, TMServerConfig.BASE_URL +"/application/hlhj_transferlottery/wap?token=${TMSharedPUtil.getTMToken(context)}&member_code=${TMSharedPUtil.getTMUser(context).member_code}");
        drawWebFgm.arguments=bundle
        val transaction = childFragmentManager?.beginTransaction()
        transaction.replace(R.id.rpWeb,drawWebFgm)
        transaction.commit()
        return rootView
    }
}